﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Collections;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x0200024D RID: 589
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class ChessRogueLayerInitialEventInfo : IMessage<ChessRogueLayerInitialEventInfo>, IMessage, IEquatable<ChessRogueLayerInitialEventInfo>, IDeepCloneable<ChessRogueLayerInitialEventInfo>, IBufferMessage
	{
		// Token: 0x170007D1 RID: 2001
		// (get) Token: 0x06001AAB RID: 6827 RVA: 0x0004D063 File Offset: 0x0004B263
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<ChessRogueLayerInitialEventInfo> Parser
		{
			get
			{
				return ChessRogueLayerInitialEventInfo._parser;
			}
		}

		// Token: 0x170007D2 RID: 2002
		// (get) Token: 0x06001AAC RID: 6828 RVA: 0x0004D06A File Offset: 0x0004B26A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return ChessRogueLayerInitialEventInfoReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x170007D3 RID: 2003
		// (get) Token: 0x06001AAD RID: 6829 RVA: 0x0004D07C File Offset: 0x0004B27C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return ChessRogueLayerInitialEventInfo.Descriptor;
			}
		}

		// Token: 0x06001AAE RID: 6830 RVA: 0x0004D083 File Offset: 0x0004B283
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChessRogueLayerInitialEventInfo()
		{
		}

		// Token: 0x06001AAF RID: 6831 RVA: 0x0004D096 File Offset: 0x0004B296
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChessRogueLayerInitialEventInfo(ChessRogueLayerInitialEventInfo other) : this()
		{
			this.fFKGKHPKHAB_ = other.fFKGKHPKHAB_;
			this.cellList_ = other.cellList_.Clone();
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06001AB0 RID: 6832 RVA: 0x0004D0CC File Offset: 0x0004B2CC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChessRogueLayerInitialEventInfo Clone()
		{
			return new ChessRogueLayerInitialEventInfo(this);
		}

		// Token: 0x170007D4 RID: 2004
		// (get) Token: 0x06001AB1 RID: 6833 RVA: 0x0004D0D4 File Offset: 0x0004B2D4
		// (set) Token: 0x06001AB2 RID: 6834 RVA: 0x0004D0DC File Offset: 0x0004B2DC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint FFKGKHPKHAB
		{
			get
			{
				return this.fFKGKHPKHAB_;
			}
			set
			{
				this.fFKGKHPKHAB_ = value;
			}
		}

		// Token: 0x170007D5 RID: 2005
		// (get) Token: 0x06001AB3 RID: 6835 RVA: 0x0004D0E5 File Offset: 0x0004B2E5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<ChessRogueCell> CellList
		{
			get
			{
				return this.cellList_;
			}
		}

		// Token: 0x06001AB4 RID: 6836 RVA: 0x0004D0ED File Offset: 0x0004B2ED
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as ChessRogueLayerInitialEventInfo);
		}

		// Token: 0x06001AB5 RID: 6837 RVA: 0x0004D0FC File Offset: 0x0004B2FC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(ChessRogueLayerInitialEventInfo other)
		{
			return other != null && (other == this || (this.FFKGKHPKHAB == other.FFKGKHPKHAB && this.cellList_.Equals(other.cellList_) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06001AB6 RID: 6838 RVA: 0x0004D14C File Offset: 0x0004B34C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.FFKGKHPKHAB != 0U)
			{
				num ^= this.FFKGKHPKHAB.GetHashCode();
			}
			num ^= this.cellList_.GetHashCode();
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06001AB7 RID: 6839 RVA: 0x0004D199 File Offset: 0x0004B399
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06001AB8 RID: 6840 RVA: 0x0004D1A1 File Offset: 0x0004B3A1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06001AB9 RID: 6841 RVA: 0x0004D1AC File Offset: 0x0004B3AC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.FFKGKHPKHAB != 0U)
			{
				output.WriteRawTag(32);
				output.WriteUInt32(this.FFKGKHPKHAB);
			}
			this.cellList_.WriteTo(ref output, ChessRogueLayerInitialEventInfo._repeated_cellList_codec);
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06001ABA RID: 6842 RVA: 0x0004D1FC File Offset: 0x0004B3FC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.FFKGKHPKHAB != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.FFKGKHPKHAB);
			}
			num += this.cellList_.CalculateSize(ChessRogueLayerInitialEventInfo._repeated_cellList_codec);
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06001ABB RID: 6843 RVA: 0x0004D250 File Offset: 0x0004B450
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(ChessRogueLayerInitialEventInfo other)
		{
			if (other == null)
			{
				return;
			}
			if (other.FFKGKHPKHAB != 0U)
			{
				this.FFKGKHPKHAB = other.FFKGKHPKHAB;
			}
			this.cellList_.Add(other.cellList_);
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06001ABC RID: 6844 RVA: 0x0004D29D File Offset: 0x0004B49D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06001ABD RID: 6845 RVA: 0x0004D2A8 File Offset: 0x0004B4A8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 32U)
				{
					if (num != 122U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						this.cellList_.AddEntriesFrom(ref input, ChessRogueLayerInitialEventInfo._repeated_cellList_codec);
					}
				}
				else
				{
					this.FFKGKHPKHAB = input.ReadUInt32();
				}
			}
		}

		// Token: 0x04000B29 RID: 2857
		private static readonly MessageParser<ChessRogueLayerInitialEventInfo> _parser = new MessageParser<ChessRogueLayerInitialEventInfo>(() => new ChessRogueLayerInitialEventInfo());

		// Token: 0x04000B2A RID: 2858
		private UnknownFieldSet _unknownFields;

		// Token: 0x04000B2B RID: 2859
		public const int FFKGKHPKHABFieldNumber = 4;

		// Token: 0x04000B2C RID: 2860
		private uint fFKGKHPKHAB_;

		// Token: 0x04000B2D RID: 2861
		public const int CellListFieldNumber = 15;

		// Token: 0x04000B2E RID: 2862
		private static readonly FieldCodec<ChessRogueCell> _repeated_cellList_codec = FieldCodec.ForMessage<ChessRogueCell>(122U, ChessRogueCell.Parser);

		// Token: 0x04000B2F RID: 2863
		private readonly RepeatedField<ChessRogueCell> cellList_ = new RepeatedField<ChessRogueCell>();
	}
}
